'''
Created on May 22, 2009

@author: Roni
'''
import utils

class kPotentialClique(object):
    '''
    classdocs
    '''


    def __init__(self,core,gcn):
        '''
        Constructor
        '''
        self.core = core
        self.gcn = gcn

    def __str__(selfs):
        return "<Core:%s; Gcn:%s>" % (self.core,self.gcn) 

        
    def is_potential(self,k):
        if len(self.core)+len(self.gcn)<k:
            return False
        else:
            return True
    
    def same(self,other_kPc):
        if utils.list_set_equals(self.core, other_kPc.core)==False:
            return False
        if utils.list_set_equals(self.gcn, other_kPc.gcn)==False:
            return False
        return True
        
        